﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Admin.Master" AutoEventWireup="true" CodeBehind="ResultService.aspx.cs" Inherits="MobiMap.Admin.ResultService" Title="Untitled Page" %>

<asp:Content ID="ctHead" ContentPlaceHolderID="head" runat="server">
<title>Result Service</title>

<script type="text/javascript" src="../Script/AdminScript.js" ></script> 

<script type="text/javascript">
    function ShowPlaceInMap()
    {
        alert(document.getElementsByTagName("label").length);
//        var latitude = parseFloat(latNode.value);
//        var longitude = parseFloat(longNode.value);
//        
//        necessaryData = "PlacePoint";
//        var res = "newcenter=latlong" + "@" + latitude + "@" + longitude;
//        LoadMap(res);
    }
</script>
</asp:Content>
<asp:Content ID="ctMain" ContentPlaceHolderID="mainArea" runat="server">
<div class="lstService_wrapper">
    <br /><asp:Label ID="lbNumOfResults" runat="server" Text=""></asp:Label><br /><br />
    
    <div id="gvServiceContainer">
        <asp:GridView ID="gvService" runat="server" AutoGenerateColumns="False" 
            CellPadding="2" GridLines="None" Width="100%" AllowPaging="True"
            BorderWidth="0px" ShowHeader="False" onpageindexchanging="gvService_PageIndexChanging" Font-Size="12px" PageSize="6">
            
            <RowStyle HorizontalAlign="Left"/>
            <Columns>            
                <asp:TemplateField>
                    <ItemTemplate>                        
                        <div class="divResultService">
                            <asp:LinkButton id="lbFullName" runat="server" CssClass="linkDetail" OnClick="lbtPlace_Click" Text='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'></asp:LinkButton><br />
                            <asp:Label id="lbType" runat ="server" Text='<%# DataBinder.Eval(Container.DataItem, "Type.Description") %>'></asp:Label><br />
                            <asp:Label id="lbAddress" runat ="server" Text='<%# DataBinder.Eval(Container.DataItem, "Address") %>'></asp:Label>
                                                        
                            <asp:Label Visible="false" id="lbID" runat ="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'></asp:Label>                        
                            <asp:Label Visible="false" id="lbLongitude" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Location.Longitude") %>'></asp:Label>
                            <asp:Label Visible="false" id="lbLatitude" runat ="server" Text='<%# DataBinder.Eval(Container.DataItem, "Location.Latitude") %>'></asp:Label>                             
                        </div>                        
                    </ItemTemplate>
                </asp:TemplateField>            
            </Columns>
            <PagerStyle HorizontalAlign="Left" />      
            
        </asp:GridView>
    </div>
</div>
</asp:Content>
